import request from '@/utils/request'
// 获取下拉员工数据
export function getEmployeeSimple() {
  return request({
    url: '/sys/user/simple'
  })
}

// 获取员工列表
// params: {page, size}
export function getEmployeeList(params) {
  return request({
    methods: 'get',
    url: '/sys/user',
    params
  })
}
// 删除员工api
export function delEmployee(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}
// 新增员工
export function addEmployee(data) {
  return request({
    method: 'post',
    url: '/sys/user',
    data
  })
}

// 批量添加员工
export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'POST',
    'data': data
  })
}
